home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 1⁄5⁄90 / 0330-Re TWindow.IWindow b-Jan90 < prev    next >
Encoding:
Text File  |  1990-01-05  |  1.7 KB  |  63 lines  |  [TEXT/GEOL]

  1. Item    9005046                         4-Jan-90        19:44
  2.  
  3. From:   MOOF                            Rollin, Keith A
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    RE>TWindow.IWindow bug?
  8.  
  9. Attn: Strata, Gary Bringhurst,PRT
  10. SentBy: Keith Rollin
  11. Date   1/4/90
  12. Subject    RE>TWindow.IWindow bug?
  13. From   Keith Rollin
  14. To Strata, Gary Bringhurst,PRT
  15.  
  16.          Reply to:   RE>TWindow.IWindow bug?
  17. It sure looks like a bug to me. This will have ramifications on TWindow.Zoom
  18. and TWindow.SetResizeLimits. Those are the only methods that really look at
  19. that field (unless you look at it yourself, too). Under very bad conditions,
  20. you could corrupt memory when MacApp tries to set the zoom sizes of your
  21. window, and windowPtr.dataHandle has a bogus value.
  22.  
  23. Note to everyone else: TWindow.IRes does not suffer from this problem. Windows
  24. created through templates will work OK.
  25.  
  26. --------------------------------------
  27. Date: 1/4/90
  28. To: Keith Rollin
  29. From: Strata, Gary Bringhurst,PRT
  30. Item    8813162                         4-Jan-90        18:44
  31.  
  32. From:   D2022                           Strata, Gary Bringhurst,PRT
  33.  
  34. To:     MACAPP.TECH$                    MacApp Technical
  35.  
  36. Sub:    TWindow.IWindow bug?
  37.  
  38.  
  39. Isn't MacApp 2.0b9 in error where, in the TWindow.IWindow method, the window
  40. procID is supposedly saved off with:
  41.  
  42.  fProcID := GetWRefCon(itsWmgrWindow);
  43.    SetWRefcon(itsWmgrWindow, LONGINT(SELF));
  44.  
  45.  
  46. Shouldn't this code actually read:
  47.  
  48.    IF TrapExists(_GetWVariant) THEN
  49.    fProcID := GetWVariant(fWmgrWindow)
  50.    ELSE
  51.    fProcID := BAND($0F, BSR(LONGINT(WindowPeek(fWmgrWindow)^.windowDefProc),
  52. 24));
  53.    SetWRefcon(itsWmgrWindow, LONGINT(SELF));
  54.  
  55.  
  56. Is this an error???
  57.  
  58. Gary L. Bringhurst
  59. Strata Inc.
  60. D2022
  61.  
  62.  
  63.